import React from 'react'
import Appclassfn from './appclassfn'
import Appfnson from './appfnson'
import {useState} from "react"
import { Swiper } from 'react-vant';
import { items } from '../components/swiperitem';
import '../style.less';

function App() {
   let [name,setName] = useState("zhangsan")
  return (
    <div>
        <div className="demo-swiper">
          <Swiper autoplay={5000}>{items}</Swiper>
    </div>
        <hr />
        <Appclassfn send="我是父组件中的数据" name={name}></Appclassfn>
        <Appfnson  send="我是父组件中的数据1111" name={name}></Appfnson>
    </div>
  )
}

export default App